const ORDER_STATUS = [
    { key: '待支付', value: 1 },
    { key: '已支付', value: 2 },
    { key: '待收货', value: 3 },
    { key: '已完成', value: 4 },
];

const orderStatus = (value) => {
    const status = ORDER_STATUS.find(i => i.value === value);
    return status ? status.key : '未知状态';
};

export default orderStatus;